package Reentrantlock;

public class Yook {
        public static void main(String[] args) throws Exception {
            Ticket ticket = new Ticket(); // 对象实例化
            for (int x = 0; x < 5; x++) {
                new Thread(() -> {
                    ticket.sale(); // 售票处理
                }, "售票员 - " + x).start();
            }
        }
    }


